package org.rjxh.examfront.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;


import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 考试记录
 * </p>
 *
 * @author BA7LGJ
 * @since 2024-04-04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam_record")
@ApiModel(value = "ExamRecord对象", description = "考试记录")
public class ExamRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "单次考试记录")
    @TableId(value = "record_id", type = IdType.ASSIGN_ID)
    private Long recordId;

    @ApiModelProperty(value = "考试ID")
    @TableField("exam_user_id")
    private Long examUserId;

    @ApiModelProperty(value = "考生进入考试时间")
    @TableField("exam_start_time")
    private LocalDateTime examStartTime;

    @ApiModelProperty(value = "考试使用时长 秒")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty(value = "逻辑成绩")
    @TableField("logic_score")
    private BigDecimal logicScore;

    @ApiModelProperty(value = "总成绩")
    @TableField("total_score")
    private BigDecimal totalScore;


    @TableField(exist = false)
    private ExamUser examUser;

    @TableField(exist = false)
    private ExamExamination examExamination;

}
